<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

The page illustrates how to call BerkeleyMapper using POST (instead of referencing a tabfile that has been written to a server).
<br>For the purposes of illustration, this example is coded entirely in javascript, but could just as easily be written in PHP, Java,
or the programming environment of your choice.
<br>The process involves:
        <ul>
            <li>1. Call the BerkeleyMapper session service with configfile and tabdata POST elements to obtain a session ID</li>
            <li>2. Use the session ID to call BerkeleyMapper again using GET element</li>
        </ul>
<p><button>Submit</button>


<script>
$("button").click(function(){
var configfile="http://ucjeps.berkeley.edu/ucjeps.xml";
    // Call the BerkeleyMapper session service using POST Parameters
    $.post("/v2/session",
  {
    configfile:configfile,
    tabdata:
    "JEPS\tJEPS46159\tPlatanus racemosa\tW. L. Jepson\t\t7449\t\t\t\t\tAlameda\t\tArroyo Mocho\t37.67694\t-121.91111\n"+
    "JEPS\tJEPS46159\tPlatanus racemosa\tW. L. Jepson\t\t7449\t\t\t\t\tAlameda\t\tFake Locality\t37.8\t-121\n"+
    "JEPS\tJEPS46159\tPlatanus racemosa\tW. L. Jepson\t\t7449\t\t\t\t\tAlameda\t\tSome other Locality\t37.6\t-121.81\n",  },
  function(sessionid,status){
    // Now call BerkeleyMapper, directing output to an iframe (below)
    $("#content").attr('src','/?session='+sessionid+'&configfile='+configfile);
  });
});

</script>
<br>
<iframe id='content' name='content' width=100% height=100%></iframe>